package person.bing.fbcloud.auth.constant;

/**
 * @author: mengfanbing
 * @date: 2020/9/8 15:53
 */
public interface FBCloudSecurityConstants {
    /**
     * 前缀
     */
    String TKCLOUD_PREFIX = "tkcloud_";
    /**
   * oauth 相关前缀
   */
    String OAUTH_PREFIX = "oauth:";
    /**
     * client数据字段
     */
    String CLIENT_FIELDS = "client_id, CONCAT('{noop}',client_secret) as client_secret, resource_ids, scope, " + "authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity, " + "refresh_token_validity, additional_information, autoapprove";
    /**
   * JdbcClientDetailsService 查询语句
   */
    String BASE_FIND_STATEMENT = "select " + CLIENT_FIELDS + " from sys_oauth_client_details";
    /**
   * 默认的查询语句
   */
    String DEFAULT_FIND_STATEMENT = BASE_FIND_STATEMENT + " order by client_id";
    /**
   * 按条件client_id 查询
   */
    String DEFAULT_SELECT_STATEMENT = BASE_FIND_STATEMENT + " where client_id = ?";
}
